#!/usr/bin/env bash
ps aux | grep 5001 | awk -F' ' {'print $2'} | xargs kill -9
cd src
gunicorn -w2 -b0.0.0.0:5001 'search-api:load_app(config_file="../config/config_local_itg.yml", logging_config_file="../config/logging.yml")' \
--daemon --access-logfile logs/access.log  --error-logfile logs/error.log -k gevent
